Skip to content

Defer Emscripten window events during a frame#183

Open
relh wants to merge 1 commit into
treeform:masterfrom
relh:relh/defer-emscripten-window-events
Open

Defer Emscripten window events during a frame#183
relh wants to merge 1 commit into
treeform:masterfrom
relh:relh/defer-emscripten-window-events

Conversation

@relh

@relh relh commented Jul 22, 2026

Copy link
Copy Markdown

What changed

Focus, blur, and resize events that arrive while Asyncify has suspended onFrame are queued until the frame returns. This keeps window callbacks from changing state in the middle of a frame.

Check

  • nim c -d:emscripten examples/basic.nim with Emscripten 6.0.2

Focus and resize events can arrive while Asyncify has suspended onFrame. Queue those callbacks until onFrame returns so window state changes at a frame boundary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant